import { get, post, put, del } from './api'


/**
 * 遗产相关API
 */

// 获取遗产列表
export const getHeritageList = (params) => {
    return get('/feign/heritage/list', params)
}

// 获取遗产详情
export const getHeritageDetail = (id) => {
    return get(`/feign/heritage/${id}`)
}

// 创建遗产
export const createHeritage = (data) => {
    return post('/feign/heritage', data)
}

// 更新遗产
export const updateHeritage = (id, data) => {
    return put(`/feign/heritage/${id}`, data)
}

// 删除遗产
export const deleteHeritage = (id) => {
    return del(`/feign/heritage/${id}`)
}

// 获取遗产统计信息
export const getHeritageStatistics = () => {
    return get('/feign/heritage/statistics')
}
